/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import java.util.Collection;

/**
 *
 * @author sio
 */
public class Spe implements Comparable <Spe>{

    private String id;
    private Collection <Medecin> lesMeds;
    
    public Spe(String id, Collection <Medecin> lesMeds){
        this.id = id;
        this.lesMeds = lesMeds;
    }
    
    public String getId(){
        return this.id;
    }
    
    public Collection<Medecin> getLesMeds(){
        return this.lesMeds;
    }
    
    @Override
    public int compareTo(Spe s) {
        return id.compareTo(s.id);
    }
    
}
